package com.liik.game.mvc.object;

import com.liik.game.util.Vector;

public class Navigation {
	// if pressed
	public boolean pressed = false;
	// target tile
	public Vector target = new Vector();
	// screen target position
	public Vector screenTarget = new Vector();
	// stores if the initial click was on a menu item
	public boolean menuTriggered = false;

	public void setScreenTarget(float x, float y) {
		screenTarget.x = x;
		screenTarget.y = y;
		pressed = true;
	}

	public void clearScreenTarget() {
		pressed = false;
	}

	public void updateTarget(Display display) {
		target.set(screenTarget);
		target.div(display.screensize.x / display.dimensions.x);
		target.add(display.offset);
	}
}
